package com.atguigu.test.po;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zp
 * @version 1.0
 * @description: TODO
 * @date 2022/12/6 19:04
 */
@Slf4j
public abstract class AbstractRun {
    /**
     * @description: 返回动物对象
     * @author zp
     * @date: 2022/12/6 19:05
     * @return Animal
     */
    public abstract Animal getAnimal();

    public void run(){
        this.getAnimal().run();
    }

}
